package com.eugeneMa.enumEntity;

/**
 * 日期格式枚举类
 *
 * @author Eugenema
 * @date 2022/4/4 16:00
 **/
public enum DateFormatEnum {
    DATETIME("年-月-日 时:分:秒", "yyyy-MM-dd HH:mm:ss"),
    DATETIME_NOSPLIT("年月日时分秒", "yyyyMMddHHmmss"),
    DATE("年-月-日", "yyyy-MM-dd"),
    DATE_NOSPLIT("年月日", "yyyyMMdd"),
    TIME("时:分:秒", "HH:mm:ss"),
    HOURMINUTE("时:分", "HH:mm"),
    HOURMINUTE_NOSPLIT("时分", "HHmm");

    /** 名称 */
    String designation;
    /** 值 */
    String value;

    DateFormatEnum (String designation, String value) {
        this.designation = designation;
        this.value = value;
    }

    public String getDesignation() {
        return designation;
    }

    public String getValue() {
        return value;
    }

    @Override
    public String toString() {
        return "DateFormatEnum{" +
                "designation='" + designation + '\'' +
                ", value='" + value + '\'' +
                '}';
    }
}
